package org.mq.mymq.common.enums;

/**
 * @ClassName NameServerEventCode
 * @Description 事件Code编码
 * @Author jiarong_ye
 * @Date 2025/6/19 12:33
 * @Version 1.0
 */
public enum NameServerEventCode {
    REGISTRY(1, "注册事件"),
    UN_REGISTRY(2, "下线事件"),
    HEART_BEAT(3, "心跳事件"),
    START_REPLICATION(4, "开启复制"),
    MASTER_START_REPLICATION_ACK(5,"master回应slave节点开始同步"),
    MASTER_REPLICATION_MSG(6,"主从同步数据"),
    SLAVE_HEART_BEAT(7,"从节点心跳数据"),
    SLAVE_APPLICATION_ACK_MSG(8, "从节点接收同步数据成功"),
    NODE_REPLICATION_MSG(9, "节点复制数据"),
    NODE_REPLICATION_ACK_MSG(10, "链式复制中数据同步成功信号"),
    PULL_BROKER_IP_LIST(11, "拉取broker的主节点IP地址"),
    ;


    int code;
    String desc;

    NameServerEventCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
